﻿@{
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
    ViewBag.Title = "系统设置";
}

@section htmlhead{
    <link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/validator.css" rel="stylesheet" />
}
@model LY.Entity.S_Siteconfig
<div class="container" style="height: 1000px;">
    <div id="forms" class="mt10">
        <div class="box">
            <div class="box_border">
                <div class="box_top"><b class="pl15">配置信息</b></div>
                <div class="box_center">
                    <form method="post" id="frmEdit" action="@Url.Action("SiteconfigSave")" class="jqtransform">
                        @*   <input id="Id" name="Id" value="@Model.Id" type="hidden" />*@
                        <h4 style="margin-left: 15px">网站基本信息</h4>
                        <table class="form_table pt15 pb15" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>网站名称:</td>
                                <td class="">
                                    <input type="text" name="Webname" id="Webname" value="@Model.Webname" class="input-text lh30" size="40" />
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>网站域名:</td>
                                <td class="">
                                    <input type="text" name="Weburl" id="Weburl" value="@Model.Weburl" class="input-text lh30" size="40" />
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>网站LOGO：</td>
                                <td class="">
                                    <input type="text" name="Weblogo" id="Weblogo" value="@Model.Weblogo" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>公司名称：</td>
                                <td class="">
                                    <input type="text" name="Webcompany" id="Webcompany" value="@Model.Webcompany" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>通讯地址：</td>
                                <td class="">
                                    <input type="text" name="Webaddress" id="Webaddress" value="@Model.Webaddress" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>联系电话：</td>
                                <td class="">
                                    <input type="text" name="Webtel" id="Webtel" value="@Model.Webtel" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>传真号码：</td>
                                <td class="">
                                    <input type="text" name="Webfax" id="Webfax" value="@Model.Webfax" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>管理员邮箱：</td>
                                <td class="">
                                    <input type="text" name="Webmail" id="Webmail" value="@Model.Webmail" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>网站备案号：</td>
                                <td class="">
                                    <input type="text" name="Webcrod" id="Webcrod" value="@Model.Webcrod" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>网站首页标题：</td>
                                <td class="">
                                    <input type="text" name="Webtitle" id="Webtitle" value="@Model.Webtitle" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>页面关健词：</td>
                                <td class="">
                                    <input type="text" name="Webkeyword" id="Webkeyword" value="@Model.Webkeyword" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>页面描述：</td>
                                <td class="">
                                    <input type="text" name="Webdescription" id="Webdescription" value="@Model.Webdescription" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>网站版权信息：</td>
                                <td class="">
                                    <input type="text" name="Webcopyright" id="Webcopyright" value="@Model.Webcopyright" class="input-text lh30" size="40">
                                </td>
                            </tr>
                        </table>
                        <br />

                        <h4 style="margin-left: 15px">功能权限设置</h4>
                        <table class="form_table pt15 pb15" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>网站路径：</td>
                                <td class="">
                                    <input type="text" name="Webpath" id="Webpath" value="@Model.Webpath" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>网站管理目录：</td>
                                <td class="">
                                    <input type="text" name="Webmanagepath" id="Webmanagepath" value="@Model.Webmanagepath" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>开启生成静态：</td>
                                <td class="">
                                    @Html.ResourceRadioList("Staticstatus", "SubProject", Model.Staticstatus == null ? 0 : Model.Staticstatus, true)
                                    @* <input type="text" name="Staticstatus" id="Staticstatus" value="" class="input-text lh30" size="40">*@
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>生成静态扩展名：</td>
                                <td class="">
                                    <input type="text" name="Staticextension" id="Staticextension" value="@Model.Staticextension" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>开启会员功能：</td>
                                <td class="">
                                    @Html.ResourceRadioList("Memberstatus", "SubProject", Model.Memberstatus == null ? 0 : Model.Memberstatus, true)
                                    @*<input type="text" name="Memberstatus" id="Memberstatus" value="" class="input-text lh30" size="40">*@
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>开启评论审核：</td>
                                <td class="">
                                    @Html.ResourceRadioList("Commentstatus", "SubProject", Model.Commentstatus == null ? 0 : Model.Commentstatus, true)
                                    @*  <input type="text" name="Commentstatus" id="Commentstatus" value="" class="input-text lh30" size="40">*@
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>后台管理日志：</td>
                                <td class="">
                                    <input type="text" name="Logstatus" id="Logstatus" value="@Model.Logstatus" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>是否关闭网站：</td>
                                <td class="">
                                    @Html.ResourceRadioList("Webstatus", "SubProject", Model.Webstatus == null ? 0 : Model.Webstatus, true)
                                    @* <input type="text" name="Webstatus" id="Webstatus" value="" class="input-text lh30" size="40">*@
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>关闭原因描述：</td>
                                <td class="">
                                    <input type="text" name="Webclosereason" id="Webclosereason" value="@Model.Webclosereason" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>网站统计代码：</td>
                                <td class="">
                                    <textarea id="Webcountcode" rows="4" style="width: 295px" name="Webcountcode">@Model.Webcountcode</textarea>
                                    @*  <input type="text" name="Webcountcode" id="Webcountcode" value="@Model.Webcountcode" class="input-text lh30" size="40">*@
                                </td>
                            </tr>
                        </table>
                        <br />

                        <h4 style="margin-left: 15px">短信平台设置</h4>
                        <table class="form_table pt15 pb15" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>短信API地址：</td>
                                <td class="">
                                    <input type="text" name="Smsapiurl" id="Smsapiurl" value="@Model.Smsapiurl" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>短信平台登录账户名：</td>
                                <td class="">
                                    <input type="text" name="Smsusername" id="Smsusername" value="@Model.Smsusername" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>短信平台登录密码：</td>
                                <td class="">
                                    <input type="text" name="Smspassword" id="Smspassword" value="@Model.Smspassword" class="input-text lh30" size="40">
                                </td>
                            </tr>
                        </table>
                        <br />

                        <h4 style="margin-left: 15px">邮件发送设置</h4>
                        <table class="form_table pt15 pb15" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>STMP服务器：</td>
                                <td class="">
                                    <input type="text" name="Emailsmtp" id="Emailsmtp" value="@Model.Emailsmtp" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>SMTP端口：</td>
                                <td class="">
                                    <input type="text" name="Emailport" id="Emailport" value="@Model.Emailport" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>发件人地址：</td>
                                <td class="">
                                    <input type="text" name="Emailfrom" id="Emailfrom" value="@Model.Emailfrom" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>邮箱账号：</td>
                                <td class="">
                                    <input type="text" name="Emailusername" id="Emailusername" value="@Model.Emailusername" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>邮箱密码：</td>
                                <td class="">
                                    <input type="text" name="Emailpassword" id="Emailpassword" value="@Model.Emailpassword" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>发件人昵称：</td>
                                <td class="">
                                    <input type="text" name="Emailnickname" id="Emailnickname" value="@Model.Emailnickname" class="input-text lh30" size="40">
                                </td>
                            </tr>
                        </table>
                        <br />


                        <h4 style="margin-left: 15px">文件上传设置</h4>
                        <table class="form_table pt15 pb15" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>附件上传目录：</td>
                                <td class="">
                                    <input type="text" name="Filepath" id="Filepath" value="@Model.Filepath" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>附件保存方式：</td>
                                <td class="">
                                    <input type="text" name="Filesave" id="Filesave" value="@Model.Filesave" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>附件上传类型：</td>
                                <td class="">
                                    <input type="text" name="Fileextension" id="Fileextension" value="@Model.Fileextension" placeholder="gif,jpg,png,bmp,rar,zip,doc,xls,txt" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>文件上传大小：</td>
                                <td class="">
                                    <input type="text" name="Attachsize" id="Attachsize" value="@Model.Attachsize" class="input-text lh30" size="5">kb
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>图片上传大小：</td>
                                <td class="">
                                    <input type="text" name="Imgsize" id="Imgsize" value="@Model.Imgsize" class="input-text lh30" size="5">kb
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>图片最大尺寸：</td>
                                <td class="">
                                    <input type="text" name="Imgmaxheight" id="Imgmaxheight" value="@Model.Imgmaxheight" class="input-text lh30" size="4">
                                    x
                                    <input type="text" name="Imgmaxwidth" id="Imgmaxwidth" value="@Model.Imgmaxwidth" class="input-text lh30" size="4">px
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>生成缩略图尺寸：</td>
                                <td class="">
                                    <input type="text" name="Thumbnailheight" id="Thumbnailheight" value="@Model.Thumbnailheight" class="input-text lh30" size="4">
                                    x
                                   <input type="text" name="Thumbnailwidth" id="Thumbnailwidth" value="@Model.Thumbnailwidth" class="input-text lh30" size="4">px
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>图片水印类型：</td>
                                <td class="">
                                    @Html.ResourceRadioList("Watermarktype", "Watermarktype", Model.Watermarktype == null ? 0 : Model.Watermarktype, true)
                                    @* <input type="text" name="Watermarktype" id="Watermarktype" value="@Model.Watermarktype" class="input-text lh30" size="40">*@
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>图片水印位置：</td>
                                <td class="">
                                      @Html.ResourceDropDownList("Watermarkposition", "Watermarkposition", @Model.Watermarkposition, new { @class="wh80 select"})
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>图片生成质量：</td>
                                <td class="">
                                    <input type="text" name="Watermarkimgquality" id="Watermarkimgquality" value="@Model.Watermarkimgquality" class="input-text lh30" size="5">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>图片水印文件：</td>
                                <td class="">
                                    <input type="text" name="Watermarkpic" id="Watermarkpic" value="@Model.Watermarkpic" class="input-text lh30" size="40">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>水印透明度：</td>
                                <td class="">
                                    <input type="text" name="Watermarktransparency" id="Watermarktransparency" value="@Model.Watermarktransparency" class="input-text lh30" size="5">
                                </td>
                                <td class="td_right"><span style="color: red;">*</span>水印文字：</td>
                                <td class="">
                                    <input type="text" name="Watermarktext" id="Watermarktext" value="@Model.Watermarktext" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red;">*</span>文字字体：</td>
                                <td class="">
                                    @*<input type="text" name="Watermarkfont" id="Watermarkfont" value="@Model.Watermarkfont" class="input-text lh30" size="40">*@
                                    @Html.ResourceDropDownList("Watermarkfont", "Watermarkfont", @Model.Watermarkfont, new { @class = "wh160 select" }) x
                                     <input type="text" name="Watermarkfontsize" id="Watermarkfontsize" value="@Model.Watermarkfontsize" class="input-text lh30" size="5">px
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">&nbsp;</td>
                                <td class="">
                                    <input id="btnSave" type="button" name="button" class="btn btn82 btn_save2" value="保存,并生成配置文件"> 
                                    <input id="btnReturn" type="button" name="button" class="btn btn82 btn_res" value="返回">
                                    <br />
                                    <br />
                                    <br />
                                </td>
                            </tr>
                        </table>
                        <input type="hidden" name="Id" id="Id" value="@Model.Id" />
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section jssection{
    @* <script type="text/javascript">
        var util = {};
        var options = {

        };
    </script>*@
    <script src="~/Content/assets/plugins/validator/validator.js"></script>
    <script src="~/Content/assets/js/common.js"></script>
    <script src="~/Content/assets/app/Siteconfig/siteconfigedit.js"></script>
}

